home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / gfx / misc / gnuplot-3.7src.lha / gnuplot-3.7src / gnuplot-3.7.lha / gnuplot-3.7 / makefile.g < prev    next >
Makefile  |  1998-10-09  |  4KB  |  97 lines

  1. # This file is for GRASS, a geographic information system. 
  2. # To compile, make modifications below (if necessary) then
  3. # % gmake4.1
  4. # % MAKELINKS
  5. #
  6. # NOTE: this creates a binary called 'g.gnuplot' and is located in
  7. #       $GISBASE/bin.  
  8. #       A help file is installed in $(GISBASE)/man/help/g.gnuplot
  9. #
  10. # GRASS driver written by:
  11. # James Darrell McCauley          Department of Ag Engr, Purdue Univ
  12. # mccauley@ecn.purdue.edu         West Lafayette, Indiana 47907-1146
  13. #
  14. # Last modified: 05 Apr 1995
  15. #
  16. # Modification History:
  17. # <15 Jun 1992>    First version created with GNUPLOT 3.2
  18. # <15 Feb 1993> Modified to work with frames
  19. # <16 Feb 1993> Added point types triangle (filled and unfilled), 
  20. #               inverted-triangle (filled and unfilled), 
  21. #               circle (filled and unfilled), and filled box.
  22. #               Graph is no longer erased after g.gnuplot is finished.
  23. # <01 Mar 1993> Modified to work with 3.3b9
  24. # <26 Jun 1993> Fixed up this file to automatically install the 
  25. #               binary and help.
  26. # <05 Apr 1995> Re-worked Gmakefile for version 3.6
  27. #               Cleaned up grass.trm, adding explicit function declarations,
  28. #               so that it compiles cleanly with 'gcc -Wall'
  29. # <14 Apr 1995> adapted for new terminal layout, added font selection
  30. #
  31. #############################################################################
  32. #
  33. # Change REGULAR_FLAGS to be those determined by 'configure' when
  34. # you compiled the plain (non-GRASS) version of gnuplot.
  35. #
  36. # the following is what I use for Solaris 2.3
  37. REGULAR_FLAGS=-DREADLINE=1 -DNOCWDRC=1 -DPROTOTYPES=1 -DX11=1 \
  38.     -DHAVE_UNISTD_H=1 -DHAVE_TERMIOS_H=1 -DSTDC_HEADERS=1 \
  39.     -DRETSIGTYPE=void -DGAMMA=lgamma -DHAVE_GETCWD=1 -DHAVE_STRNCASECMP=1 \
  40.     -DXPG3_LOCALE=1 -DHAVE_SYS_SYSTEMINFO_H=1 -DHAVE_SYSINFO=1 \
  41.     -DHAVE_TCGETATTR=1 -I/opt/x11r5/include -g -O
  42. ################### Don't touch anything below this line ###################
  43.  
  44. HELPDEST=$(GISBASE)/man/help/g.gnuplot
  45.  
  46. # Where to send email about bugs and comments 
  47. EMAIL="mccauley@ecn.purdue.edu\\n\tor grassp-list@moon.cecer.army.mil [info.grass.programmer]"
  48.  
  49. # Where to ask questions about general usage
  50. HELPMAIL="grassu-list@moon.cecer.army.mil\\n\t[info.grass.user] or info-gnuplot@dartmouth.edu [comp.graphics.gnuplot]"
  51.  
  52. # This causes grass.trm to be included in term.h
  53. GTERMFLAGS = -DGISBASE -I. -I./term
  54.  
  55. EXTRA_CFLAGS=$(GTERMFLAGS) $(REGULAR_FLAGS) -DCONTACT=\"$(EMAIL)\" \
  56.     -DHELPMAIL=\"$(HELPMAIL)\" -DHELPFILE=\"$(HELPDEST)\"
  57.  
  58. # List of object files (including version.o)
  59. OBJS = bitmap.o command.o contour.o eval.o graphics.o graph3d.o help.o \
  60.     internal.o misc.o parse.o plot.o plot2d.o plot3d.o readline.o \
  61.     scanner.o set.o show.o specfun.o standard.o term.o util.o binary.o \
  62.     interpol.o fit.o matrix.o datafile.o alloc.o version.o
  63.  
  64. all: $(BIN_MAIN_CMD)/g.gnuplot $(GISBASE)/man/help/g.gnuplot
  65.  
  66. $(BIN_MAIN_CMD)/g.gnuplot: $(OBJS) $(DISPLAYLIB) $(RASTERLIB) $(GISLIB) 
  67. #g.gnuplot: $(OBJS) $(DISPLAYLIB) $(RASTERLIB) $(GISLIB) 
  68.     $(CC) $(LDFLAGS) -o $@ $(OBJS) $(DISPLAYLIB) $(RASTERLIB) $(GISLIB) $(TERMLIB) $(MATHLIB)
  69.  
  70. $(GISBASE)/man/help/g.gnuplot:
  71.     /bin/cp docs/gnuplot.gih $(HELPDEST)
  72.  
  73.  
  74. ################################################################
  75. # Dependencies
  76.  
  77. term.o: term.h term.c 
  78.  
  79. $(OBJS): plot.h
  80.  
  81. command.o: command.c fit.h
  82.  
  83. command.o help.o misc.o: help.h
  84.  
  85. command.o graphics.o graph3d.o misc.o plot.o set.o show.o term.o: setshow.h
  86.  
  87. fit.o: fit.c fit.h matrix.h plot.h
  88.  
  89. matrix.o: matrix.c matrix.h fit.h
  90.  
  91. bitmap.o term.o: bitmap.h
  92.  
  93. ################################################################
  94. $(RASTERLIB): #
  95. $(DISPLAYLIB): #
  96. $(GISLIB): #
  97.